/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package database.objects;

/**
 *
 * @author Tri
 */
public class DOUser {
    // Static KEY
    public static final String KEY_USER_ID  = "userID";
    public static final String KEY_USERNAME = "username";
    public static final String KEY_MONEY = "money";
    public static final String KEY_CURRENT_LVL = "currentLevel";
    public static final String KEY_LATEST_LVL = "latestLevel";
    public static final String KEY_TIME_TO_GAIN_LIVE = "timeToGainLive";
    public static final String KEY_LIVES = "lives";
    public static final String KEY_FRIENDS_LIST = "friendsList";
    public static final String KEY_ITEMS_LIST   = "itemsList";
    public static final String KEY_AVATAR       = "avatarURL";
    public static final String KEY_SUB_FRIENDS = "subFriendsList";
    public static final String KEY_SUB_ITEMS    = "subItemsList";
    
    private String userID;
    private String username;
    public  double money;
    public int currentLevel;
    public int latestLevel;
    public long timeToGainTime;
    public int lives;
    private String[] friendsList;
    private String[] itemsList;
    public  String avatarURL;
    
    public DOUser(String userID, String username, double money, int currentLevel, int latestLevel, long timeToGainTime, int lives, String[] friendsList, String[] itemsList) {
        this.userID = userID;
        this.username = username;
        this.money = money;
        this.currentLevel = currentLevel;
        this.latestLevel = latestLevel;
        this.timeToGainTime = timeToGainTime;
        this.lives = lives;
        this.friendsList = friendsList;
        this.itemsList = itemsList;
        this.getAvatarFromZing();
        
    }
    
    public DOUser(String userID, String usernameString, int currentLevel) {
        this.userID = userID;
        this.username = usernameString;
        this.currentLevel = currentLevel;
    }
    
    public String getUserID() {
        return this.userID;
    }
    
    public String getUsername() {
        return this.username;
    }
    
    public String[] getFriendsList() {
        return this.friendsList;
    }
    
    public String[] getItemsList() {
        return this.itemsList;
    }
    
    private void getAvatarFromZing() {
        
    }
    
    public void setAvatar(String url) {
        this.avatarURL = url;
    }
    
}
